package firstMaven;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanlifecyleDemo {

	public static void main(String[] args) {

		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beanlifecycle.xml");
		LifecycleBean bean =context.getBean(LifecycleBean.class);
		System.out.println("get bean");
		context.close();
	}

}
